package com.nanshututeng.Service;

import com.nanshututeng.config.DS;
import com.nanshututeng.dao.UserMapper;
import com.nanshututeng.model.UserBean;
import com.nanshututeng.model.testBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018-09-20.
 */
@Service
public class GetUserInfoService {
    @Autowired
    private UserMapper uMapper;
    @DS("datasource2")
    public List<UserBean> selectUser(Map<String,Object>param)
    {return uMapper.selectuserWithParam(param);

    }
    @DS("datasource2")
    public List<UserBean>select(){
        return  uMapper.selectuser();
    }
    @DS("datasource2")
    public List<testBean> test(){return  uMapper.select();}

    @DS("datasource2")
    @Transactional(readOnly = true)
    public  void registuser(UserBean bean)
    {

    }

}
